package com.chixing.day04.day04Test;

public class AccountTest {
    public static void main(String[] args) {
        CreditAccount cr1 = new CreditAccount(101, "jml", "7881", 1818181811l,
                3000, 0.04f, 1, 10000, 80);
        cr1.withdraw(6000);
        System.out.println("账户余额: " + cr1.getAccBalance());
        System.out.println("可用额度: " + cr1.getMaxOverdraw());


        SavingAccount sa1 = new SavingAccount();
        sa1.depoist(1000);

        //多肽
        Account sa2 = new SavingAccount(); //父类引用子类对象
        sa2.withdraw(1000);
    }
}
